<%@include file="/WEB-INF/jsp/common/header.jsp" %>

<script>
    $(document).ready(function() {

        //MAIN FORM
        //Click Save button
        $("a.save").click(function() {
            $("#culture-create-form").submit();
        });
    });
</script>
<div id="Content">
    <div class="metadata">
        <form:form id="culture-create-form" modelAttribute="culture" action="./create.html" method="POST">
        
        <c:if test="${culture.id==null}">
            <h2><spring:message code="manage.culture.create"/></h2>
        </c:if>
        <c:if test="${culture.id!=null}">
            <h2><spring:message code="manage.culture.modify"/></h2>
        </c:if>
        <a class="back action-link" href="./list.html"><spring:message code="back"/></a>
        <a class="save action-link" href="javascript:void(0)"><spring:message code="save"/></a>

        <c:if test="${culture.id!=null}">
            <a class="cancel action-link" href="./delete.html?id=${culture.id}"><spring:message code="delete"/></a>
        </c:if>

    </div>
    <div class="post">
        <div class="entry">
            <div>
                <h2><spring:message code="manage.culture.information"/></h2>
            </div>

            <div>
                <table>
                    <tr>
                        <div class="form-line">
                            <td class="form-table-label">
                                <form:label for="name" path="name" cssErrorClass="error">
                                    <spring:message code="column.name"/>
                                </form:label>
                            </td>
                            <td>
                                <form:input cssClass="store-input" path="name"/><span class="mandatory">*</span>
                                <form:errors path="name" cssClass="error"/>
                            </td>
                            <c:if test="${culture.id!=null}">
                                <form:hidden path="id"/>
                            </c:if>
                        </div>
                    </tr>
                    <tr>
                        <div class="form-line">
                            <td class="form-table-label">
                                <form:label for="displayName" path="displayName" cssErrorClass="error">
                                    <spring:message code="column.description"/>
                                </form:label>
                            </td>
                            <td>
                                <form:input cssClass="store-input" path="displayName"/><span class="mandatory">*</span>
                                <form:errors path="displayName" cssClass="error"/>
                            </td>
                        </div>
                    </tr>
                </table>
            </div>

        </div>
    </div>

    </form:form>
</div>


<%@include file="/WEB-INF/jsp/common/footer.jsp" %>